﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using QLHD.BUS;
using QLHD.Entity;

namespace QLHD.Controllers
{
    public class DanhMucController : ApiController
    {
        [System.Web.Mvc.HttpPost]
        public JsonResponse DanhMucHopDong_ListAll()
        {
            var jsonResponse = new JsonResponse();
            try
            {
                var lstCategory = BoBussiness.DanhMucHopDong_ListAll();
                jsonResponse.Success = true;
                jsonResponse.Data = lstCategory;
            }
            catch (Exception ex)
            {
                jsonResponse.Success = false;
                jsonResponse.Message = ex.Message;
            }

            return jsonResponse;
        }
    }
}